<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/11/29 0029
  Time: 11:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>控制台</title>
</head>
<body>
<%
    String user=(String)request.getParameter("user");
    String pwd=(String)request.getParameter("pwd");

    if("123".equals(user) && "123".equals(pwd)){
        request.getSession().setAttribute("isLogin","ok");
        response.sendRedirect("Index.jsp");
    }else{
        request.getSession().setAttribute("isLogin","no");
        response.sendRedirect("Login.jsp");
    }
%>
</body>
</html>
